package BitCreeekClient;

import javax.swing.*;

/**
 * Created by Ivan Litsvinenka e Emanuele Ricci
 * Date: 14-mar-2009
 * Time: 3.11.00
 */
public class Log {
    public static DefaultListModel logOutput;


    static void add ( String text ) {
        if ( logOutput.size () > 100 ){
            logOutput.remove ( 0 );
        }
        Log.logOutput.addElement ( text );
        System.out.println ( text );
    }

    static void add ( Object obj ) {
        Log.logOutput.addElement ( obj.toString () );
        System.out.println ( obj.toString () );
    }

}
